

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Export to XMI [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, XMI,XMI Export,Export,Export To XMI,Export To Rational Rose,UML,UML 1.4,UML 1.3">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Export to XMI</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="importexport.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="importxmi.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">You can export a package to an XMI (XML based) file. This enables you to move Enterprise Architect Model elements between models, for <a href="o1136.htm">distributed development</a>, <a href="o1133.htm">manual version control</a> and other benefits. It also enables limited export of Enterprise Architect model elements to Rational Rose and other tools that implement the </span><span class="f_BodyText">UML 2.1 XMI 2.1 standard, the </span><span class="f_BodyText">UML1.4 XMI 1.2 standard, or the UML 1.3 XMI 1.1 / XMI 1.0 standard.</span></p>
<p class="p_BodyText"><span class="f_BodyText">For more information regarding the limitations of XMI exporting read the </span><span class="f_BodyText" style="font-style: italic;"><a href="limitationxmi.htm">Limitations of XMI</a></span><span class="f_BodyText"> topic.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="955" bgcolor="#efeff7" style="width:955px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Notes:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="955" bgcolor="#f7f7ff" style="width:955px; background-color:#f7f7ff;"><ul style="text-indent: 0px; margin-left: 14px; list-style-position: outside;">
<li><span class="f_TiporNoteText">In the </span><span class="f_TiporNoteText">Corporate, Business and Software Engineering, System Engineering and Ultimate editions</span><span class="f_TiporNoteText"> of Enterprise Architect, if security is enabled you must have </span><span class="f_TiporNoteText" style="font-weight: bold;"><a href="permissionlist.htm">Export XMI</a></span><span class="f_TiporNoteText"> permission to export to XMI.</span></li>
<li><span class="f_TiporNoteText">You can post-process the XMI content before saving the package to file, using a style sheet. If you want to do this, you must import the required style sheet into the project through the </span><span class="f_UIControl"><a href="theresourcetab.htm">Resources</a></span><span class="f_TiporNoteText"> window.</span></li>
</ul>
</td>
</tr>
</table>
</div>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Export a Package to XMI</span></p>
<p class="p_BodyText"><span class="f_BodyText">To export a package to XMI, follow the steps below:</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=1><span class="f_NumberedList">In the </span><span class="f_UIControl">Project Browser </span><span class="f_NumberedList">window, </span><span class="f_NumberedList">select the package to export.</span></li>
<li value=2><span class="f_NumberedList">Either:</span></li>
</ol>
<ul style="text-indent: 0px; margin-left: 65px; list-style-position: outside;">
<li><span class="f_Bulletlist3">Right-click and select the </span><span class="f_MenuKeyField">Import/Export | Export Package to XMI</span><span class="f_Bulletlist3"> menu option, or</span></li>
<li><span class="f_Bulletlist3">Select the </span><span class="f_MenuKeyField">Project | Import/Export | Export Package to XMI</span><span class="f_Bulletlist3"> menu option.</span></li>
</ul>
<p class="p_Bulletlist3"><span class="f_Bulletlist3">The </span><span class="f_UIControl">Export Package to XMI</span><span class="f_Bulletlist3"> dialog displays.</span><br>
<span class="f_Bulletlist3">&nbsp;</span><br>
<img src="mof_xmidialog.png" width="499" height="361" border="0" alt="MOF_XMIDialog"><br>
<span class="f_Bulletlist3">&nbsp;</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=3><span class="f_NumberedList">In the </span><span class="f_MenuKeyField">Filename </span><span class="f_NumberedList">field,</span><span class="f_MenuKeyField"> </span><span class="f_Bulletlist3">type the directory path and filename into which to output the XMI file.</span></li>
<li value=4><span class="f_NumberedList">If required, in the</span><span class="f_MenuKeyField"> Stylesheet</span><span class="f_Bulletlist3"> field click on the drop-down arrow and select a stylesheet to post-process XMI content before saving to the file.</span></li>
<li value=5><span class="f_NumberedList">Select the </span><span class="f_MenuKeyField">Export Diagrams</span><span class="f_NumberedList"> checkbox to export diagrams in the file.</span></li>
<li value=6><span class="f_NumberedList">Select the</span><span class="f_Bulletlist3"> </span><span class="f_MenuKeyField">Export Alternate Images</span><span class="f_Bulletlist3"> </span><span class="f_NumberedList">checkbox to export the alternative images used in the diagrams.</span></li>
<li value=7><span class="f_NumberedList">Select the</span><span class="f_Bulletlist3"> </span><span class="f_MenuKeyField">Format XMI Output</span><span class="f_Bulletlist3"> </span><span class="f_NumberedList">checkbox to format output into readable XML (this takes a few more seconds at the end of the run).</span></li>
<li value=8><span class="f_NumberedList">Select the</span><span class="f_Bulletlist3"> </span><span class="f_MenuKeyField">Write Log file</span><span class="f_Bulletlist3"> </span><span class="f_NumberedList">checkbox to write a log of export activity (recommended); the log file is saved to the directory into which you export the XMI file.</span></li>
<li value=9><span class="f_NumberedList">If using XMI 1.1, select the</span><span class="f_Bulletlist3"> </span><span class="f_MenuKeyField">Use DTD</span><span class="f_Bulletlist3"> </span><span class="f_NumberedList">checkbox to use the UML1.3 DTD (recommended). Setting this option validates the correctness of the model and checks that no syntactical errors have occurred. For more information regarding the use of DTDs, see the </span><span class="f_NumberedList" style="font-style: italic;"><a href="umldtd.htm">UML DTD</a> </span><span class="f_NumberedList">topic.</span></li>
<li value=10><span class="f_NumberedList">Leave the </span><span class="f_MenuKeyField">Enable full EA Roundtrip</span><span class="f_NumberedList"> checkbox selected to keep data specific to Enterprise Architect in the XMI file.</span></li>
<li value=11><span class="f_NumberedList">In the</span><span class="f_Bulletlist3"> </span><span class="f_MenuKeyField">XMI Type</span><span class="f_NumberedList">: field, click on the drop-down arrow and select the appropriate XMI format:</span></li>
</ol>
<ul style="text-indent: 0px; margin-left: 65px; list-style-position: outside;">
<li><span class="f_MenuKeyField">XMI 1.1</span><span class="f_Bulletlist3">, to generate output in XMI 1.1 format</span></li>
<li><span class="f_MenuKeyField">XMI 2.1</span><span class="f_Bulletlist3">, to generate output in XMI 2.1 format.</span></li>
</ul>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=10><span class="f_NumberedList">Select the</span><span class="f_MenuKeyField"> Unisys/Rose Format</span><span class="f_NumberedList"> checkbox to export in Rose UML 1.3, XMI 1.1 format.</span></li>
<li value=11><span class="f_NumberedList">Select the </span><span class="f_MenuKeyField">Exclude EA Tagged Values</span><span class="f_Bulletlist3"> </span><span class="f_NumberedList">checkbox to exclude Enterprise Architect-specific information from the export to other tools.</span></li>
<li value=12><span class="f_NumberedList">Click on the </span><span class="f_MenuKeyField">Export</span><span class="f_NumberedList"> button</span><span class="f_NumberedList">.</span></li>
</ol>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="955" bgcolor="#efeff7" style="width:955px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Notes:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="955" bgcolor="#f7f7ff" style="width:955px; background-color:#f7f7ff;"><ul style="text-indent: 0px; margin-left: 14px; list-style-position: outside;">
<li><span class="f_TiporNoteText">XMI 2.1 exported by Enterprise Architect 7.0 (or later) might not be correctly imported into earlier versions of Enterprise Architect.</span></li>
<li><span class="f_TiporNoteText">When you select to apply a Data Type Definition (DTD) during an XMI 1.1 export, the UML_EA.DTD file is written to the output directory into which the XML files are written (unless the UML_EA.DTD file is already present in the directory). No error is generated if the UML_EA.DTD file is not present in this directory during the XMI export.</span></li>
</ul>
</td>
</tr>
</table>
</div>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="955" bgcolor="#efeff7" style="width:955px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote" style="color: #ff0000;">Important:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="955" bgcolor="#f7f7ff" style="width:955px; background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">When exporting and importing with XMI 1.0 with Enterprise Architect, some loss of data occurs due to the limitations of XMI 1.0.</span></p>
</td>
</tr>
</table>
</div>




            </div>
          </div>
        </div>



</div>


</body>
</html>
